import request from '@/utils/request'

// 查询营地周边景点表列表
export function listScenicspots(query) {
  return request({
    url: '/wechat/scenicspots/list',
    method: 'get',
    params: query
  })
}

// 查询营地周边景点表详细
export function getScenicspots(scenicId) {
  return request({
    url: '/wechat/scenicspots/' + scenicId,
    method: 'get'
  })
}

// 新增营地周边景点表
export function addScenicspots(data) {
  return request({
    url: '/wechat/scenicspots',
    method: 'post',
    data: data
  })
}

// 修改营地周边景点表
export function updateScenicspots(data) {
  return request({
    url: '/wechat/scenicspots',
    method: 'put',
    data: data
  })
}

// 删除营地周边景点表
export function delScenicspots(scenicId) {
  return request({
    url: '/wechat/scenicspots/' + scenicId,
    method: 'delete'
  })
}
